package net.rauh.util.ui {
	import flash.display.MovieClip;		

	/**
	 * 
	 * Implements the basic functionality of an UIComponent. This basic
	 * implementation creates a movieclip where the component will draw itself and delegates
	 * the drawing related calls to the this movieclip. In addition, the component starts
	 * invisible and must be made visible by calling show() or setting the _visible property
	 * to true.
	 * 
	 * @author Christian Rauh
	 * @version 2007-7-8
	 */
	public class UIComponent extends MovieClip {

		
		public static var EVENT_ON_INIT : String = "onInit";
		public static var EVENT_ON_INIT_PROGRESS : String = "onInitProgress";

		//private var content : MovieClip;

		public function UIComponent() {
		}

		/*
		 * 
		 * PUBLIC METHODS
		 * 
		 */

		public function init() : void {
			//dispatchEvent(new Event(EVENT_ON_INIT,this));
		}

		public function start() : void {
			visible = true;
		}

		public function finish() : void {
			visible = false;
		}
	}
}